import { createRouter, createWebHistory } from 'vue-router'

import Movie from '@/views/movie/index.vue'
import YingYuan from '@/views/yingyuan/index.vue'
import ZiXun from '@/views/zixun/index.vue'
import User from '@/views/user/index.vue'
const routes = [
  {
    path: '/',
    name: '电影',
    component: Movie
  },
   {
    path: '/yingyuan',
    name: '影院',
    component: YingYuan
  },
  {
    path: '/zixun',
    name: '资讯',
    component: ZiXun
  },
  {
    path: '/user',
    name: '我的',
    component: User
  },
  
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
